﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:models="clr-namespace:iopt.solvency.pillarone.client.Models"
    xmlns:ig="http://schemas.infragistics.com/xaml" x:Class="iopt.solvency.pillarone.client.Views.WorkspaceControl"
    mc:Ignorable="d"
    d:DesignHeight="600" d:DesignWidth="800">

    <UserControl.DataContext>
        <models:WorkspaceControlModel />
    </UserControl.DataContext>
    <Grid x:Name="LayoutRoot" Background="White">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <ig:XamRibbon ApplicationMenuMode="Office2010" >
        	<ig:XamRibbon.Tabs>
        		<ig:XamRibbonTabItem Header="Project"/>
        		<ig:XamRibbonTabItem Header="Model"/>
        		<ig:XamRibbonTabItem Header="Scenarios"/>
        		<ig:XamRibbonTabItem Header="Reports"/>
        		<ig:XamRibbonTabItem Header="Extensions"/>
        	</ig:XamRibbon.Tabs>
            <ig:XamRibbon.ApplicationMenu2010>
                <ig:XamRibbonApplicationMenu2010>
					<ig:ButtonTool  Caption="Disconnect" LargeImage="/iopt.solvency.pillarone.client;component/Assets/Resources/Ribbon/logout.png" />
                    <ig:SeparatorTool />
                    <ig:ButtonTool Click="ButtonTool_Click"  Caption="Create Workspace" LargeImage="/iopt.solvency.pillarone.client;component/Assets/Resources/Ribbon/folder-open-add.png" >
                       
                    </ig:ButtonTool>
                    <ig:ButtonTool Caption="Delete Workspace" LargeImage="/iopt.solvency.pillarone.client;component/Assets/Resources/Ribbon/remove_32.png" />
                    <ig:Office2010ApplicationMenuTabTool Caption="Workspaces" >
						<ListBox ItemsSource="{Binding WorkspaceList}" >
							<Style TargetType="ListBoxItem">
                                <Setter Property="HorizontalAlignment" Value="Stretch" />
                                <Setter Property="HorizontalContentAlignment" Value="Stretch" />
                                <Setter Property="Margin" Value="2" />
                                <Setter Property="Padding" Value="2" />
                                
                            </Style>
                            <ListBox.ItemTemplate>
                                <DataTemplate >
                                    <StackPanel Orientation="Horizontal">
                                        <Image Height="64" Width="64" Source="/iopt.solvency.pillarone.client;component/Assets/Resources/Ribbon/Folder-icon.png" Stretch="Fill" />
                                        <TextBlock Text="{Binding Name}" VerticalAlignment="Center" Margin="5" />
                                    </StackPanel>
                                </DataTemplate>
                            </ListBox.ItemTemplate>
						</ListBox>
					</ig:Office2010ApplicationMenuTabTool>
                    <ig:SeparatorTool />
                    <ig:ButtonTool Caption="Create Project" LargeImage="/iopt.solvency.pillarone.client;component/Assets/Resources/Ribbon/folder-open-add.png" />
                    <ig:ButtonTool Caption="Delete Project" LargeImage="/iopt.solvency.pillarone.client;component/Assets/Resources/Ribbon/remove_32.png" />
                    <ig:Office2010ApplicationMenuTabTool Caption="Projects" />
                    <ig:SeparatorTool />
                    <ig:Office2010ApplicationMenuTabTool Caption="Settings" />
                    <ig:ButtonTool Caption="Help" LargeImage="/iopt.solvency.pillarone.client;component/Assets/Resources/Ribbon/Help.png" />
                    <ig:ButtonTool Caption="About This Tool" LargeImage="/iopt.solvency.pillarone.client;component/Assets/Resources/Ribbon/Smile.png" />
                </ig:XamRibbonApplicationMenu2010>
            </ig:XamRibbon.ApplicationMenu2010>

        </ig:XamRibbon>
        <ig:XamDockManager Grid.Row="1" >
        	<ig:XamDockManager.Panes>
        		<ig:ContentPane IsPinned="True" IsActivePane="False"/>
        		<ig:ContentPane IsPinned="True" IsActivePane="False" Location="Right"/>
        	</ig:XamDockManager.Panes>
            <Button Content="Button" HorizontalAlignment="Left" Height="196" Margin="188,69,0,0" VerticalAlignment="Top" Width="340" Click="Button_Click"/>
        </ig:XamDockManager>
		<StackPanel Margin="1" Grid.Row="2">
			<TextBlock Margin="1" Padding="1" Text="Online ... " />
		</StackPanel>
    </Grid>
</UserControl>
